package com.sright.bcard.common.service.share.exception.code;

public enum BusinessCode {
    // 成功段0

    /**
     * 通用
     */
    SYS_ERROR(-200, "系统错误"),
    TRANSCODE_TEMPLATE_NOT_EXIST(1002, "转码模版配置不正确"),
    CONTAIN_SENSITIVE_WORDS(2002, "上传内容包含敏感词汇"),
    SENSITIVE_WORDS_ERROR(2003, "敏感词审核失败"),
    IMAGE_CHECK_ERROR(2004, "图片审核失败"),
    IMAGE_CONTAIN_SENSITIVE_INFO(2005, "上传图片包含敏感信息"),
    IMAGE_SOURCE_NOT_FIND(2006, "图片资源未找到"),

    /**
     * 企业管理后台
     */
    MATERIAL_LIMIT_MAX(10010, "个人版自定义素材最多20个，可删除素材后上传"),
    ENTERPRISE_NOT_EXIST(10020, "企业管理员状态异常"),
    ACCOUNT_EXIST(10030, "企业账户已存在"),
    ACCOUNT_NOT_EXIST(10031, "企业账户不存在"),
    ENTERPRISE_ADD_ERROR(10040, "添加企业失败"),
    ACCOUNT_NOT_NULL(10050, "账号不能为空"),
    PWD_NOT_NULL(10060, "密码不能为空"),
    ACCOUNT_OR_PWD_ERROR(10070, "账号或密码不正确"),
    ACCOUNT_ENTERPRISE_EXCEPTION(10080, "企业状态异常"),
    ACCOUNT_ENTERPRISE_NOT_EXIST(10090, "企业不存在"),
    ACCOUNT_FORBIDDEN(10110, "账号被禁用"),
    ACCOUNT_BE_OVERDUE(10120, "账号已过期"),
    ACCOUNT_LOGIN_ERROR(100130, "登陆失败，请重新登录"),
    ENTERPRISE_STAFF_LIMIT(10140, "企业员工数量已经达到上限"),
    PWD_REPEAT_ERROR(10150, "需要修改的密码和确认密码不一致，请检查"),
    SMS_SEND_MESSAGE(10160, "短信发送失败"),
    EXPERIRED_AT_TIME_OUT(10170, "您的企业版账号已到期，请拨打电话400-8596-099联系客服购买。"),
    NULL_OF_CONNECTUSERID(10180, "请选择交接员工"),
    NUll_OF_CONNECTCARDID(10190, "请选择交接员工的名片id"),
    NUll_OF_ENTERPRISECARDID(10200, "当前没有cuface"),

    /**
     * 小程序后台
     */
    SUCCESS(20010,"操作成功"),
    NEED_LOGIN(20020,"需要登录后操作"),
    CARD_NOT_EXIST(404,"名片不存在"),
    CARD_DELETE(405,"名片已被删除"),
    PARAM_ERROR(20040, "参数错误"),
    APPLY_REPEAT(20050, "申请已通过，请勿重复申请"),
    CARD_INFO_NOT_EXSIT(20060, "名片信息不存在"),
    VISITOR_RECORD_NOT_EXSIT(20070, "访客记录不存在"),
    /**
     * cms运营后台
     */
    ;

    Integer code;
    String message;

    BusinessCode(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
